<template>
	<view class="ra_banner">
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
			<swiper-item v-for="(item, index) in banner" :key="index">
				<image :src="item" mode=""></image>
			</swiper-item>
		</swiper>
	</view>
</template>
 
<script>
	import {getBanner} from "@/network/axios/radio/radioBanner"
	
	export default {
		name: '',
		data(){
			return {
				banner: []
			}
		},
		methods:{
			
		},
		created() {
			getBanner().then(res => {
				res.data.data.forEach(x => {
					this.banner.push(x.pic)
				})
			})
		}
	}
</script>
 
<style lang="less" scoped>
	image {
		width: 100%;
		height: 100%;
	}
</style>
